package com.phiture.erp.finance.common.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

@RequiredArgsConstructor
@Getter
public enum ErpFinanceStatementSelectedEnum implements IntArrayValuable {

    NO(0, "否"),
    YES(1, "是");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ErpFinanceStatementSelectedEnum::getStatus).toArray();

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
